import Vue from 'vue'
import Router from 'vue-router'
import StorePage from '@/pages/store'
import SortPage from '@/pages/sort'
import MinePage from '@/pages/mine'
import LoginPage from '@/pages/login'
import RegistPage from '@/pages/regist'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: '商城',
      component: StorePage
    },
    {
      path: '/sort',
      name: '分类',
      component: SortPage
    },
    {
      path: '/mine',
      name: '个人中心',
      component: MinePage
    },
    {
      path: '/login',
      name: '登陆',
      component: LoginPage
    },
    {
      path: '/regist',
      name: '注册',
      component: RegistPage
    }
  ]
})
